package com.basic.mq;

public enum MqMessageTypeEnum {

    PUBLISH_ESSAY(1, "PUBLISH_ESSAY", "发布文章产生的消息"),

    COMMENT(2, "", "评论产生的消息"),

    LIKED(3, "LIKED", "点赞产生的消息"),

    ASYNC_DEAL_RANKING_LIST(4, "ASYNC_DEAL_RANKING_LIST", "异步处理排行榜消息")

    ;

    private Integer code;

    private String name;

    private String desc;

    private MqMessageTypeEnum(Integer code, String name, String desc) {
        this.code = code;
        this.name = name;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }
}
